home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / maximus / mtd_103.zip / MT-NEWS.ARJ / MAXREIPC.DOC next >
Text File  |  1993-02-25  |  5KB  |  117 lines

  1.  
  2.                    ╔═════════════════════════════════════╗
  3.                    ║ Maximus Random Errorlevel Generator ║
  4.                    ║─────────────────────────────────────║
  5.                    ║  Faking a second node with MaxIPC   ║
  6.                    ╚═════════════════════════════════════╝
  7.  
  8.   1. Purpose:  To generate a random errorlevel from a user specified
  9.      range of numbers, to be used in a batch file.
  10.  
  11.   2. Usage:  MaxRE Ln Hn
  12.                      
  13.                    │  └────── Highest number you want generated (no limit)
  14.                    │
  15.                    └───────── Lowest number you want generated
  16.  
  17.  
  18.   3. MaxRE will then generate a random number between the numbers you
  19.      specify (inclusive) and return a DOS errorlevel to be use in a
  20.      batch file.
  21.  
  22.  
  23.   4. Example: MaxRE 1 10 will return random errorlevels ranging from
  24.      1 to 10.
  25.  
  26.  
  27.   5. Example batch file for use with Maximus IPC creator:
  28.  
  29.    Notes: - This batch example assume you have MAXIPC.ZIP, which creates
  30.             "fake" displays when an on-line Maximus user is shown "Who
  31.             is on." (Freq'able as MAXIPC.ZIP at Fidonet 1:350/501 - v32bis
  32.             if you can't get it closer to home)
  33.  
  34.           - This batch assumes you run this fairly often.  I run it in the
  35.             "After_Call" section of my mailer's batch file AND at the end
  36.             of my local logon batch file.
  37.  
  38.           - You may have to play around with where you call this batch
  39.             file if you intend on using it on a "real" node.
  40.  
  41.           - You may also think about running MaxRE twice for each IPC
  42.             message... once to choose the user, and a second time to
  43.             choose the fake user's actions (obviously you'll want to
  44.             choose an action which the fake user cannot be paged while
  45.             doing. *grin*)
  46.  
  47.  
  48.    Okay here's the batch file:
  49.  
  50.      d:                            <── Change to my IPC dir (a ram drive)
  51.      if exist d:\local.on goto end <── I use node #2 exclusively for local
  52.      c:\Max\IPC\MaxRe 1 10 <──────┐    operation and use a semafore flag
  53.      If ErrorLevel 10 GoTo 10     │    file to stop this fake from happening
  54.      If ErrorLevel 9 GoTo 9       │    if I'm on the BBS.
  55.      If ErrorLevel 8 GoTo 8       │
  56.      If ErrorLevel 7 GoTo 7       └─── C:\Max\IPC\MaxRe 1 10
  57.      If ErrorLevel 6 GoTo 6                          
  58.      If ErrorLevel 5 GoTo 5            └──┴───┴───┤     │ │
  59.      If ErrorLevel 4 GoTo 4                       │     │ └─ Highest number
  60.      If ErrorLevel 3 GoTo 3                       │     │    I want.
  61.      If ErrorLevel 2 GoTo 2                       │     │
  62.      If ErrorLevel 1 GoTo 1                       │     └─── Lowest number
  63.      GoTo End               <─── A "catchall"     └──────┐   I want.
  64.      :10                                                 │
  65.      C:\Max\IPC\IPC 2 "Front Door" "Waiting for caller"  └── Full pathname
  66.      GoTo End                                                to MaxRE.exe.
  67.      :9
  68.      C:\Max\IPC\IPC 2 "Joe Blow" "Running external program"
  69.      GoTo End
  70.      :8
  71.      C:\Max\IPC\IPC 2 "Front Door" "Waiting for caller"
  72.      GoTo End
  73.      :7
  74.      C:\Max\IPC\IPC 2 "John Doe" "Running external program"
  75.      GoTo End
  76.      :6
  77.      C:\Max\IPC\IPC 2 "Jane Doe" "Unavailable for chat"
  78.      GoTo End
  79.      :5
  80.      C:\Max\IPC\IPC 2 "James Smith" "Running external program"
  81.      GoTo End
  82.      :4
  83.      C:\Max\IPC\IPC 2 "Front Door" "Waiting for caller"
  84.      GoTo End
  85.      :3
  86.      C:\Max\IPC\IPC 2 "Capt Kirk" "Transferring a file"
  87.      GoTo End
  88.      :2
  89.      C:\Max\IPC\IPC 2 "Front Door" "Waiting for caller"
  90.      GoTo End
  91.      :1
  92.      C:\Max\IPC\IPC 2 "Front Door" "Waiting for caller"
  93.      :End                              
  94.      C:    <──┐ │   │      │              └─── Action of fake user/program.
  95.      CD\Fd <┐ │ │   │      │
  96.             │ │ │   │      └────────────────── Name of either fake user or
  97.             │ │ │   │                          fake program.
  98.             │ │ │   │
  99.             │ │ │   └───────────────────────── Node number for fake user or
  100.             │ │ │                              program to show usage on.
  101.             │ │ │
  102.             │ │ └───────────────────────────── Full pathname to IPC.EXE
  103.             │ │
  104.             │ └─────────────────────────────── Don't forget to change back
  105.             │                                  from your ramd drive if used.
  106.             │
  107.             └───────────────────────────────── And finally back to your
  108.                                                mailer's dir.
  109.  
  110.   6. Disclaimer: Standard disclaimer in force... namely; author assumes no
  111.      responsibility for any damages incurred by use of this program,
  112.      whether direct or consequential.  (If it breaks in two, you own both
  113.      pieces).
  114.  
  115.   7. That's all folks!
  116.  
  117.